#include <iostream>
#include <string>
using namespace std;

int flag = 0;

int longth(string s) {
    if (s.size() <= 4)   return 5;
    if (s.size() > 4 && s.size() <= 7)   return 10;
    if (s.size() >= 8)   return 25;
    return 0;
}
int alphabet(string s) {
    int grade = 0;
    for (auto e : s) {
        if (e <= 'z' && e >= 'a') {
            grade += 10;
            break;
        }
    }
    for (auto e : s) {
        if (e <= 'Z' && e >= 'A') {
            grade += 10;
            break;
        }
    }
    return grade;
}
int num(string s) {
    int count = 0;
    for (auto e : s) {
        if (e >= '0' && e <= '9')
            if (++count > 1) break;
    }
    return count * 10;
}

int chara(string s)
{
    int count = 0;
    string x("!\"#$ % &'()*+,-./:;<=>?@[\\]^_`{|}~");
    for (auto e : s)
    {
        for (auto y : x)
        {
            if (e == y)
              if (++count > 1) break;
        }
    }
    return (count * 10 > 10) ? 25 : count * 10;
   /* int count = 0;
    for (auto e : s)
    {
        if ((e > 'z' && e < 'a') && (e > 'Z' && e < 'A') && (e < '0' && e > '9'))
            
    }
    return (count * 10 > 10) ? 25 : count * 10;*/
}

int main() {
    string s;
    while (cin >> s) {
        int com = 0;
        int l = longth(s), a = alphabet(s), n = num(s), c = chara(s), p = 0;
        if (c == 0 && a == 10 && n != 0)  p = 2;
        if (c != 0 && a == 10 && n != 0)  p = 3;
        if (c != 0 && a == 20 && n != 0)  p = 5;
        com = l + a + n + c + p;

        if (com >= 90)   cout << "VERY_SECURE" << endl;
        else if (com < 90 && com >= 80)   cout << "SECURE" << endl;
        else if (com < 80 && com >= 70)   cout << "VERY_STRONG" << endl;
        else if (com < 70 && com >= 60)   cout << "STRONG" << endl;
        else if (com < 60 && com >= 50)   cout << "AVERAGE" << endl;
        else if (com < 50 && com >= 25)   cout << "WEAK" << endl;
        else if (com < 25 && com >= 0)   cout << "VERY_WEAK" << endl;
    }
    return 0;
}
